package svnkitDemo;

import java.io.File;
import java.util.ArrayList;
import java.util.List;

import jodd.io.findfile.FindFile;

import org.apache.commons.lang.StringUtils;


public class Test {
	public static void main(String[] args) {
		List<String> f = GitExportMod
				.readFile("i:/workspace70/study_test/src/svnkitDemo/git.txt");
		for (int i = 0; i < f.size(); i++) {
			System.out.println(f.get(i));
		}
	}

	public static List<File> deepScanFiles(String filePath, boolean isDeepScan) {
		List<File> list = new ArrayList<File>();
		FindFile ff = new FindFile().setRecursive(isDeepScan)
				.setIncludeDirs(true).searchPath(filePath);

		File f;
		String path;
		while ((f = ff.nextFile()) != null) {
			if (f.isDirectory() == false) {
				f = f.getAbsoluteFile();
				path = f.getAbsolutePath();
				if (path.indexOf(".svn") > 0) {
					continue;
				}
				System.out.println(StringUtils.replace(path, "\\", "/"));
				list.add(f);
			}
		}
		return list;
	}
}
